package com.sqsf.aspect;

/**
 * @program: IDEA
 * @description: Project
 * @author: liuhao
 * @create: 2025/6/18 17:24
 */

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class log {
    @Before("execution(* com.sqsf.service.*.*(..))")
    public void logBefore(JoinPoint joinPoint) {
        String methodName = joinPoint.getSignature().getName();
        System.out.println("执行了[" + methodName + "]操作");
    }
}

